import React, { useState, useEffect } from 'react';
import ReactDOM from 'react-dom';
import { Link, useHistory } from 'react-router-dom'
import { Layout, Menu, Breadcrumb, Row, Col, Button, Tabs, Space, message } from 'antd';
import { UserOutlined, LaptopOutlined, NotificationOutlined } from '@ant-design/icons';
import { checkLogin } from '../../../utils/loginUtils/loginMethod'
import HistoryScore from '../scoreCenter/historyScore'
import SubjectOneLineChart from '../scoreStatistics/index'
export default () => {
    const { TabPane } = Tabs;
    const history = useHistory()
    if (!checkLogin()) {
        message.error('请登录')
        history.push('/user')
    }

    return (
        <>
            <Tabs
                size='large'
            >
                <TabPane tab="历史成绩" key="1">
                    <HistoryScore/>
                </TabPane>
                <TabPane tab="成绩统计" key="2">
                    <SubjectOneLineChart/>
                </TabPane>

            </Tabs>
        </>
    )
}


